best formula of hcf and LCM